﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ucProductCategory.ascx.cs"
    Inherits="VINETLIFE.Module.ucProductCategory" %>
<asp:Label runat="server" ID="lblRunScript"></asp:Label>
<div class="newproduct">
    <div class="heading">
        <div class="heading1">
            <a href="/nha-san-xuat/Ecogo-2" title="Ecogo">
                <h2 class="heading2">
                    Xe đạp Ecogo
                </h2>
            </a>
        </div>
    </div>
    <div class="foo-news">
        <div id="fooEcogo">
            <asp:Repeater runat="server" ID="rptEcogo">
                <ItemTemplate>
                    <div class="product">
                      <%--  <a class="a-hover" href='/<%#FriendlyUrl(Eval("ProductCategoryTitle").ToString()) %>/<%#FriendlyUrl(Eval("ProductTitle").ToString())%>-<%#Eval("ProductID")%>'
                            title='<%#Eval("ProductTitle") %>'>--%>
                          <a class="a-hover" href='/san-pham/<%#FriendlyUrl(Eval("ProductTitle").ToString())%>-<%#Eval("ProductID")%>'
                            title='<%#Eval("ProductTitle") %>'>
                            <img src='/Media/Thumbnail/<%#Eval("Thumbnail")%>' alt='<%#Eval("ProductTitle") %>'
                                title='<%#Eval("ProductTitle") %>' />
                            <div class="product-no-promotion">
                                <p class="hidden p-title">
                                    <%#Eval("ProductTitle") %></p>
                                <p class="h-old-price" style='display: <%#Boolean.Parse(Eval("IsPromotion").ToString())==true?"block":"none"%> !important;'>
                                    <%#Eval("Price","{0:0,0} VNĐ") %></p>
                                <p class="hidden p-price">
                                    <%#VINETLIFE.Ultility.GetPrice(Eval("ProductID")) %>
                            </div>
                        </a>
                        <div class="action-product">
                            <div class="product-button">
                                <%--<a href='/<%#FriendlyUrl(Eval("ProductCategoryTitle").ToString()) %>/<%#FriendlyUrl(Eval("ProductTitle").ToString())%>-<%#Eval("ProductID")%>'
                                    title='<%#Eval("ProductTitle") %>' class="detail-product">Chi tiết</a>--%>
                                <a href='/san-pham/<%#FriendlyUrl(Eval("ProductTitle").ToString())%>-<%#Eval("ProductID")%>'
                                    title='<%#Eval("ProductTitle") %>' class="detail-product">Chi tiết</a>
                                <%-- <asp:Button runat="server" ID="btnCart" CssClass="h-btn-cart" CommandArgument='<%#Eval("ProductID") %>'  
                                            CommandName="AddToCart" />--%>
                                <input type="button" id="btnCart" class="h-btn-cart" onclick="updateCart(<%#Eval("ProductID")%>,1); return false;" />
                            </div>
                        </div>
                        <span style='display: <%#Boolean.Parse(Eval("IsPromotion").ToString())==true?"block":"none"%> !important'
                            class="promotion-product-span">KM</span>
                    </div>
                </ItemTemplate>
            </asp:Repeater>
        </div>
    </div>
</div>
<div class="newproduct">
    <div class="heading">
        <div class="heading1">
            <a href="/nha-san-xuat/Topbike-3" title="Ecogo">
                <h2 class="heading2">
                    Xe đạp Topbike
                </h2>
            </a>
        </div>
    </div>
    <div class="foo-news">
        <div id="fooTopbike">
            <asp:Repeater runat="server" ID="rptTopbike">
                <ItemTemplate>
                    <div class="product">
                        <a class="a-hover" href='/san-pham/<%#FriendlyUrl(Eval("ProductTitle").ToString())%>-<%#Eval("ProductID")%>'
                            title='<%#Eval("ProductTitle") %>'>
                            <img src='/Media/Thumbnail/<%#Eval("Thumbnail")%>' alt='<%#Eval("ProductTitle") %>'
                                title='<%#Eval("ProductTitle") %>' />
                            <div class="product-no-promotion">
                                <p class="hidden p-title">
                                    <%#Eval("ProductTitle") %></p>
                                <p class="h-old-price" style='display: <%#Boolean.Parse(Eval("IsPromotion").ToString())==true?"block":"none"%> !important;'>
                                    <%#Eval("Price","{0:0,0} VNĐ") %></p>
                                <p class="hidden p-price">
                                    <%#VINETLIFE.Ultility.GetPrice(Eval("ProductID")) %>
                            </div>
                        </a>
                        <div class="action-product">
                            <div class="product-button">
                                <a href='/san-pham/<%#FriendlyUrl(Eval("ProductTitle").ToString())%>-<%#Eval("ProductID")%>'
                                    title='<%#Eval("ProductTitle") %>' class="detail-product">Chi tiết</a>
                                <%-- <asp:Button runat="server" ID="btnCart" CssClass="h-btn-cart" CommandArgument='<%#Eval("ProductID") %>'  
                                            CommandName="AddToCart" />--%>
                                <input type="button" id="btnCart" class="h-btn-cart" onclick="updateCart(<%#Eval("ProductID")%>,1); return false;" />
                            </div>
                        </div>
                        <span style='display: <%#Boolean.Parse(Eval("IsPromotion").ToString())==true?"block":"none"%> !important'
                            class="promotion-product-span">KM</span>
                    </div>
                </ItemTemplate>
            </asp:Repeater>
        </div>
    </div>
</div>
<asp:Repeater runat="server" ID="rptHomePageCate" OnItemDataBound="rptHomePageCate_ItemDataBound">
    <ItemTemplate>
        <div class="newproduct">
            <div class="heading">
                <div class="heading1">
                    <a href='/danh-muc/<%#FriendlyUrl(Eval("ProductCategoryTitle").ToString())%>-<%#Eval("ProductCategoryID")%>'
                        title='<%#Eval("ProductCategoryTitle") %>'>
                        <h3 class="heading2">
                            <%#Eval("ProductCategoryTitle") %>
                        </h3>
                    </a>
                </div>
            </div>
            <div class="foo-news">
                <div id='foo-<%#Eval("ProductCategoryID") %>'>
                    <asp:Repeater runat="server" ID="rptChild" OnItemCommand="rptChild_OnItemCommand">
                        <ItemTemplate>
                            <div class="product">
                                <a class="a-hover" href='/san-pham/<%#FriendlyUrl(Eval("ProductTitle").ToString())%>-<%#Eval("ProductID")%>'
                                    title='<%#Eval("ProductTitle") %>'>
                                    <img src='/Media/Thumbnail/<%#Eval("Thumbnail")%>' alt='<%#Eval("ProductTitle") %>'
                                        title='<%#Eval("ProductTitle") %>' />
                                    <div class="product-no-promotion">
                                        <p class="hidden p-title">
                                            <%#Eval("ProductTitle") %></p>
                                        <p class="h-old-price" style='display: <%#Boolean.Parse(Eval("IsPromotion").ToString())==true?"block":"none"%> !important;'>
                                            <%#Eval("Price","{0:0,0} VNĐ") %></p>
                                        <p class="hidden p-price">
                                            <%#VINETLIFE.Ultility.GetPrice(Eval("ProductID")) %>
                                    </div>
                                </a>
                                <div class="action-product">
                                    <div class="product-button">
                                        <a href='/san-pham/<%#FriendlyUrl(Eval("ProductTitle").ToString())%>-<%#Eval("ProductID")%>'
                                            title='<%#Eval("ProductTitle") %>' class="detail-product">Chi tiết</a>
                                        <%-- <asp:Button runat="server" ID="btnCart" CssClass="h-btn-cart" CommandArgument='<%#Eval("ProductID") %>'
                                            CommandName="AddToCart" />--%>
                                        <input type="button" id="btnCart" class="h-btn-cart" onclick="updateCart(<%#Eval("ProductID")%>,1); return false;" />
                                    </div>
                                </div>
                            </div>
                        </ItemTemplate>
                    </asp:Repeater>
                </div>
            </div>
            <%--     <a href="." id='slide-next-<%#Eval("ProductCategoryID") %>' class="slidex-prev" style="display: block;">
                    <span></span></a><a href="." id='slide-prev-<%#Eval("ProductCategoryID") %>' class="slidex-next"
                        style="display: block;"><span></span></a>--%>
        </div>
    </ItemTemplate>
</asp:Repeater>
